import Mock from "mockjs";
import jwt from "jsonwebtoken";
let token ="Bearer" +jwt.sign({foo:"bar"},"liujing")
Mock.mock("/api/login",{
    code:200,
    msg:"登陆成功",
    token:token
})

Mock.mock("/api/list",{
    code:100,
    "list|2":[{
        "id":"@id",
        "name":"@cname",
        "user":"@cword(2,4)",
        "sex|1":["男","女"],
        "info":"@ctitle(4,7)",
        "Flag":false,
        "isTure|1":[false,true],
        "date":new Date().toLocaleTimeString()

    }]
})